* {
    margin: 0;
    padding: 0;
}

.main {
    width: 300px;
    border: 1px black solid;
    position: relative;
    left: 40%;
    top: 100px;
    overflow: hidden;
}

.top input {
    width: 300px;
    margin-top: 0;
    height: 50px;
    line-height: 50px;
    font-size: 40px;
    text-align: right;
    border-color: #ffffff;
    cursor: pointer;
    padding-right: 10px;
    box-sizing: border-box;
}

.bottom input {
    display: inline-block;
    width: 71px;
    height: 71px;
    cursor: pointer;
    line-height: 71px;
    font-size: 32px;
    font-weight: bold;
}

input:hover {
    background-color: lightgoldenrodyellow;
}